package mil.af.amc.adpetracker.web.helpers;

import mil.af.amc.adpetracker.model.DRA;
import mil.af.amc.adpetracker.service.DraService;
import mil.af.amc.radtaglibrary.tags.PageContextAwareBean;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.jsp.PageContext;
import java.util.List;

/**
 * Please Fill in this Javadoc
 *
 * @author TSgt Jason Ferguson
 */
@Service("draViewHelper")
public class DraViewHelper implements PageContextAwareBean {

    private PageContext pageContext;

    @Autowired
    public void setPageContext(PageContext pageContext) {
        this.pageContext = pageContext;
    }

    private DraService draService;

    @Autowired
    public void setDraService(DraService draService) {
        this.draService = draService;
    }

    public List<DRA> getAll() {

        return draService.getAll();   
    }

}
